package com.ruoyi.wms.domain.bo.employee;

import com.ruoyi.wms.domain.entity.employee.EmployeeTraining;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;

import java.util.Date;

/**
 * 员工培训业务对象 employee_training
 *
 * @author 邓滔滔
 * @date 2024-12-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmployeeTraining.class, reverseConvertGenerate = false)
public class EmployeeTrainingBo extends BaseEntity {

    /**
     * 编号
     */
    private Long id;

    /**
     * 培训状态
     */
    @NotBlank(message = "培训状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 培训名称
     */
    private String trainingName;

    /**
     * 员工
     */
    @NotNull(message = "员工不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long employeeId;

    /**
     * 培训类型
     */
    @NotBlank(message = "培训类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String trainingType;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startDate;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endDate;

    /**
     * 培训内容
     */
    private String trainingContent;


}
